var roleService = require('../service/roleService')

module.exports = {
    async getList(req, res) {
        var result = await roleService.getList()
        res.send(result)
    },
    async update(req, res) {
        var result = await roleService.update(req.params.id, req.body)
        res.send(result)
    },
    async delete(req, res) {
        var result = await roleService.delete(req.body)
        res.send(result)
    }
}